import React from 'react';
import { Modal, Button } from 'antd';
import Offline from './offline';
import s from './index.module.less';

class UnlinkModal extends React.Component {

    constructor(props) {
        super(props);
        this.state = {}
    }

    render() {
        const { show, onClose } = this.props;

        return (
            <Modal
                width={400}
                visible={show}
                footer={null}
                centered={true}
                closable={false}
                maskClosable={false}
                wrapClassName={s.wrapModal}
            >
                <div>
                    <Offline />
                    <div className={s.btn}>
                        <Button type="primary" size="large" onClick={onClose}>关闭</Button>
                    </div>
                </div>
            </Modal>
        );
    }
}

export default UnlinkModal